package cn.wyd.shield.web;


import cn.wyd.shield.token.jwt.JwtToken;
import cn.wyd.shield.token.jwt.JwtUtil;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/user")
public class TestController {
    @GetMapping("/hi")
    public JwtToken hi(HttpServletRequest request)  {
        return JwtUtil.decoder64(request);
    }
}
